<template>

<a-popconfirm
    title="Are you sure index all article ?"
    placement="leftBottom"
    ok-text="Yes"
    cancel-text="No"
    @confirm="indexAllArticle"
  >
    



  <a-float-button
    type="primary"
    tooltip="Index All Article"
  >
    <template #icon>
      <NodeIndexOutlined />
    </template>
  </a-float-button>
  </a-popconfirm>
</template>

<script setup>

import KcHooks from "@/hooks/KcHooks.js";
import { PlusOutlined } from "@ant-design/icons-vue";
import {NodeIndexOutlined } from "@ant-design/icons-vue";

import { messageApi, contextHolder } from "@/utils/MessageUtils.js";
async function indexAllArticle() {

  const res = await KcHooks.indexAllArticle();

  messageApi.success("Article Index Complete");
}
</script>

<style>

</style>